<p>
  <label for="username">用户名</label>
  <input type="text" id="username"
         [(ngModel)]="userInfo.username"
         name="username">
</p>
<p>
  <label for="password">密码</label>
  <input type="password" id="password"
         [(ngModel)]="userInfo.password"
         name="password">
</p>
<p>
  <label for="email">邮箱</label>
  <input type="text" id="email"
         [(ngModel)]="userInfo.email"
         name="email">
</p>
<p>
  <label for="phone">电话</label>
  <input type="text" id="phone"
         [(ngModel)]="userInfo.phone"
         name="phone">
</p>

<button (click)="register()">Register</button>
